import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import userLocalStorageToken from '@/common/user-localStorage-token'

Vue.use(ElementUI)

// 方法-插件
import VueCookies from 'vue-cookies'
import http from './common/http'

// 全局组件
import AudioComponents from '@/components/MuSic/AudioComponents.vue'
Vue.component('audio-components', AudioComponents)

Vue.prototype.$cookies = VueCookies
Vue.prototype.$http = http
Vue.prototype.$store = store

userLocalStorageToken.Vuex_userinfo()
userLocalStorageToken.userLocal()

console.log(process.env)

Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
